package cn.billy.controller;

import cn.billy.domain.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLOutput;

@RestController
public class UserServerController {

    @Value("${server.port}")
    private Long port;

    @GetMapping("/springboot/{id}")
      public User getById(@PathVariable Long id){
//        System.out.println("11111"+port);
        return new User (id,"李某"+port);
      }
}
